package com.xx.xunyou.dao.user;

import com.xx.xunyou.entity.user.XunyouUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface XunyouUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(XunyouUser record);

    int insertSelective(XunyouUser record);

    XunyouUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(XunyouUser record);

    int updateByPrimaryKey(XunyouUser record);

    /**
     * 通过userName查询
     * @param userName
     * @return
     */
    XunyouUser queryByUserName(@Param("userName") String userName);
}